﻿<DockPanel  x:Class="SQLQuery.UI.LogControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:dxb="clr-namespace:DevExpress.Xpf.Bars;assembly=DevExpress.Xpf.Core.v11.1" 
             
             mc:Ignorable="d" 
           Name="日志"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <dxb:BarManager Name="barManager1">
            <dxb:BarManager.Items>
                <dxb:BarCheckItem Name="cbIsClearState" Content="是否定时清空日志"  Alignment="Far"/>
                <dxb:BarButtonItem Name="btnClearLog" Content="清空日志" ItemClick="BtnClearLogItemClick"/>
            </dxb:BarManager.Items>
            <dxb:BarManager.Bars>
                <dxb:Bar Caption="Status Bar" IsStatusBar="True" Name="statusBar">
                    <dxb:Bar.DockInfo>
                        <dxb:BarDockInfo ContainerType="Bottom" />
                    </dxb:Bar.DockInfo>
                    <dxb:Bar.ItemLinks>
                        <dxb:BarItemLink BarItemName="cbIsClearState"/>
                        <dxb:BarItemLink BarItemName="btnClearLog" />
                    </dxb:Bar.ItemLinks>
                </dxb:Bar>
            </dxb:BarManager.Bars>
            <Grid>
                <RichTextBox Name="tblog"
                         AcceptsReturn="True" 
                         VerticalScrollBarVisibility="Visible" Padding="0" IsReadOnly="True" FontFamily="ContentEnd" FontSize="12">
                    <RichTextBox.Resources>
                        <Style TargetType="{x:Type Paragraph}">
                            <Setter Property="Margin" Value="0"/>
                        </Style>
                    </RichTextBox.Resources>
                </RichTextBox>
            </Grid>
            <!--<dxre:RichEditControl Name="richEditControl1"  
                                  ShowBorder="True"
                                  BarManager="{Binding ElementName=barManager1, Mode=OneTime}"
                                  ShowHoverMenu="False"
                                  ActiveViewType="Simple" ReadOnly="True"/>-->
        </dxb:BarManager>
        
    </Grid>
</DockPanel>
